// 具体处理者：组长
public class TeamLeader implements Approver {
    private Approver nextApprover;

    @Override
    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    @Override
    public void handleRequest(int days) {
        if (days <= 3) {
            System.out.println("组长批准 " + days + " 天假期");
        } else if (nextApprover != null) {
            nextApprover.handleRequest(days); // 转交下一级
        }
    }
}
